/**
 * @date:2019-09-15
 * @describe:界面调用接口结果返回类
 * @version:1.0
 */
package com.example.gmranqi.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(value = "PageResult", description = "接口返回公共类")
public class PageResult {

    @ApiModelProperty(notes = "返回数据信息")
    private Map<String, Object> body;

    @ApiModelProperty(notes = "记录接口调用所发时间(单位：毫秒)")
    private Long time;

    @ApiModelProperty(notes = "状态码：1成功，2失败，0session失效，9未登录")
    private Integer status;

    @ApiModelProperty(notes = "返回信息")
    private String msg;

}
